home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / LL_LAND.ZIP / LL_FRAC.NFO < prev    next >
Text File  |  1993-05-12  |  5KB  |  117 lines

  1.  
  2.                 [ Lord Logics Fractal Landscape ]
  3.  
  4. Type:   LL_FRAC /? for help
  5.  
  6. What the heck, the source is included as well . . .
  7.  
  8. Anyway, no  doc's here,  just a basic info file on this.  I wrote
  9. it mainly  for a  friend of  mine that  was doing a class project
  10. which entailed  entering  in  a  bunch  of  data  to  generate  a
  11. landscape for  placing a  house or  something.  Anyway, we didn't
  12. see a  need to enter in the data if we could have the computer do
  13. it, so I wrote this.
  14.  
  15. It didn't  take me  long to  write, and if you look at the source
  16. code you  can see  that.   I was  actually amazed that it worked.
  17. Its not  very often  you can  say "hey, I think I'll write a such
  18. and such  program" and  then have  it working within two hours or
  19. so.   Well, this  one was  *almost* like that.  Took me about two
  20. hours to  get it "generally" working, but then I had to add a few
  21. features to make it more user-friendly.
  22.  
  23. Basically, in  case you  were wondering, the way this works is as
  24. follows:
  25.  
  26. Let's say you have the following points:
  27.  
  28.  
  29.           1             3          1
  30.  
  31.  
  32.  
  33.           3             2          3
  34.  
  35.  
  36.  
  37.  
  38.           1             3          1
  39.  
  40.  
  41. Ok, first,  you take  the average  of all  points 1  and add some
  42. height variance  to it  to make  point 2.   You  then average the
  43. upper left heights and sub-divide all sides and the center in the
  44. same fashion.   Repeat  this a  certain number of iterations, and
  45. boom, you have a cool fractal landscape.
  46.  
  47. From the side, after 5 iterations, one row may look like:
  48.               
  49.                             4 5
  50.                           5 | | 3
  51.                     4   2 | | | | 5
  52.                 3 5 | 5 | | | | | | 4   1
  53.         1   4 5 | | | | | | | | | | | 5 |
  54.         | 5 | | | | | | | | | | | | | | |
  55.         | | | | | | | | | | | | | | | | |
  56.         1 5 4 5 3 5 4 5 2 5 4 5 3 5 4 5 1
  57.  
  58. See, you take the height of the two 1's and average them then add 
  59. some variance to it and that will then give you  point  #2.   You 
  60. then (working to the left) take the left 1 and the 2, average 'em
  61. and add a variance.  That gives you point 3.  Average 1 and 3 and
  62. add the variance and that gives you 4.  4 and 1 average with  the
  63. variance makes 5.  You then do that for all  substeps,  and  then 
  64. you have a fractal mountain (sort of . . . actually, you  have  a
  65. line, but had you been doing it with four points, you would  have
  66. a fractal.  Almost . . .
  67.  
  68. Fine, its a crappy example and you didn't learn anything from it.
  69. I don't really have much time to explain it.
  70.  
  71. Anyway, the  guy I  wrote it for says the landscape load too slow
  72. for his  tastes.   I agree.  Unfortunately, I don't have the file
  73. structure for  the 3DS  format, so,  I had  to use  what I  could
  74. figure out.   If  you have the 3DS format, or any other graphical
  75. format that you want this to be coded to fit, email it to me (the
  76. description of the file format)  Email it with some money and  it
  77. will get done faster :)
  78.  
  79. Basically, I  need to  know how  to define  vertices (points) and
  80. faces (triangles  that join  3 points  together) as  well as  any
  81. "header" information.  Then I just write a little new routine  or
  82. two to this, and *BOOM* a new version.
  83.  
  84. If you want Rivers, Trees, Boulders, or anything like that added,
  85. you'll have to give me some money.  I really need money.
  86.  
  87. Also, if  you know  where I  could find  the IPAS  toolkit for 3D
  88. Studio, I'd  be interested  in  porting  this  into  an  internal
  89. routine, although  I'm not  sure what  all that  entails.  I have
  90. read on  the network  that the  routines are public domain, so if
  91. you know  what FTP site they are on, PLEASE email me the info.  I
  92. am a  lowly college  sophomore and  don't have the $250 to get it
  93. from AutoDesk.
  94.  
  95. Oh yeah,  this program LL_FRAC.EXE is public  domain/  shareware/
  96. freeware/ whatever  you want  to call it.  If you want to send me
  97. money, hey,  I'm game  :)   If you  want to give me a job for any
  98. reason, again, I'm game.
  99.  
  100. Email me:  ketrenoj@ucs.orst.edu
  101. -or-
  102. If its  after June  1, 1993, email, ummm, peterl@hood.uofport.edu
  103. and ask  him to  forward the  message to me, and I'll get back to
  104. you.
  105.  
  106. Money can be mailed to:
  107.                         James Ketrenos
  108.                         885 S.W. 84th Ct.
  109.                         Portland, OR 97225
  110.  
  111. And 3D Studio and anything else I may have mentioned that is Copy-
  112. righted by someone else is Copyright by Autodesk or whoever it is 
  113. that owns the rights of the program I mentioned.  Clear?  Good.
  114.  
  115.                          [ Lord Logics ]
  116.  
  117.